<?php
function tpl($main)	{
	$sHtml = "";
	$sHtml.='<html>';
	$sHtml.='<head>';
	$sHtml.='<title>Win Lottery</title>';
	$sHtml.='	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
	$sHtml.='	<link rel="stylesheet" type="text/css" href="css/index.css">';
	$sHtml.='</head>';
	$sHtml.='<body>';
	$sHtml.='	<div id="head"><a class="index" href="index.htm">Win Lottery</a></div>';
	$sHtml.='	<div id="navi">';
	$sHtml.='		<ul>';
	$sHtml.='		<li><a href="history.php">History</a></li>';
	$sHtml.='		<li><a href="matrix.php">Matrix</a></li>';
	$sHtml.='		<li><a href="check.php">Check</a></li>';
	$sHtml.='		<li><a href="intro.php">Intro</a></li>';
	$sHtml.='		<li><a href="stat.php">Stat</a></li>';
	$sHtml.='		</ul>';
	$sHtml.='	</div>';
	$sHtml.='	<div id="main">';
	$sHtml.=$main;
	$sHtml.='	</div>';
	$sHtml.='	<div id="foot">lottery@windswalk.com</div>';
	$sHtml.='</body>';
	$sHtml.='</html>';

	return $sHtml;
}
?>